package com.cy.pj.eiems.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.cy.pj.eiems.entity.SysUserCommentVo;


@Mapper
public interface SysUserCommentDao {
	@Select("select su.username,uc.content,uc.createtime,uc.updatetime from user_comment uc left join sys_user su on uc.user_id=su.id order by uc.createtime desc limit 1,7")
	List<SysUserCommentVo> findUserComments();
	@Select("select count(*) from "
			+ "user_comment uc left join sys_user su on uc.user_id=su.id")
	int getRowcount();
}
